#include <Ogre.h>
#include "Object.h"

using namespace Ogre;

Object::Object()
{
}
Object::Object(Ogre::String name, Ogre::Vector3 loc, Ogre::SceneNode *node, Ogre::Entity *ent, Ogre::Vector3 size, bool destructable, bool active)
{
	mName = name;
	mLocation = loc;
	mNode = node;
	mEntity = ent;
	mSize = size;
	mKillable = destructable;
	mActive = active;
}
Object::~Object()
{
}

Ogre::Vector3 Object::getLocation()
{
	return mLocation;
}
Ogre::Vector3 Object::getSize()
{
	return mSize;
}
Ogre::String Object::getName()
{
	return mName;
}
Ogre::SceneNode *Object::getNode()
{
	return mNode;
}
Ogre::Entity *Object::getEntity()
{
	return mEntity;
}

bool Object::isActive()
{
	return mActive;
}
bool Object::isDestructable()
{
	return mKillable;
}
bool Object::callFunction()
{
	if(mActive)
		return true;
	else
		return false;
}

void Object::setLocation(Ogre::Vector3 loc)
{
	mLocation = loc;
}
void Object::setName(Ogre::String name)
{
	mName = name;
}